package com.fuqiang.nightshopumsmodel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:后台角色资源关系表
 * @author fuqiang
 * @since 2020-04-14
 */
@ApiModel(value ="后台角色资源关系表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ums_role_resource_relation")
public class UmsRoleResourceRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "角色ID")
    @TableField("role_id")
    private Long roleId;
    @ApiModelProperty(value = "资源ID")
    @TableField("resource_id")
    private Long resourceId;


    public static final String ID = "id";

    public static final String ROLE_ID = "role_id";

    public static final String RESOURCE_ID = "resource_id";

}
